package business;

import org.apache.log4j.Logger;

/**
 * Created by aleks_000 on 10.12.13.
 */
public class BankFactory {

    private static final Logger LOGGER = Logger.getLogger(BankFactory.class);

    public static Bank createBank(int accountCount, int cashierCount) {
        Bank bank = new BasicBank();
        for (int i = 0; i < accountCount; ++i) {
            bank.createAccount(i);
        }
        for (int j = 0; j < cashierCount; ++j) {
            bank.createCashier(j);
        }
        return bank;
    }

    public static Bank createBank(int accountCount, int cashierCount, double accountDefaultMoney) {
        Bank bank = new BasicBank();
        for (int i = 0; i < accountCount; ++i) {
            bank.createAccount(i, accountDefaultMoney);
        }
        for (int i = 0; i < cashierCount; ++i) {
            bank.createCashier(i);
        }
        return bank;
    }
}
